package com.bajiao.vo.order;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("CouponOrderResponse")
public class CouponOrderResponse {

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "优惠券名称")
    private String title;

    @ApiModelProperty(value = "范围 1-平台 2-商家专属")
    private Integer scope;

    @ApiModelProperty(value = "类型 1-折扣券 2-抵扣券")
    private Integer type;

    @ApiModelProperty(value = "面额")
    private BigDecimal quotaBD;

    @ApiModelProperty(value = "面额")
    private String quota;

    @ApiModelProperty(value = "购买数量")
    private Integer buyNum;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payPrice;

    @ApiModelProperty("下单时间")
    private String createTimeStr;

    @ApiModelProperty(value = "0-待支付 1-待使用 2-已使用 3-已核销 4-已过期 7-退款中 8-已退款 9-已取消", required = true, position = 130)
    private Integer status;

    @ApiModelProperty("状态")
    private String statusConv;

    @ApiModelProperty("领取时间")
    private String receiveTime;

    @ApiModelProperty("优惠券失效时间")
    private String expireTime;

    @ApiModelProperty(value = "订单过期时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date orderExpireTime;

    @ApiModelProperty("订单过期时间戳")
    private Long orderExpireTimeStamp;
}
